package cn.com.shopec.erp.stock.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * @ClassName: StockOutProd
 * @Description: 出库商品实体类
 * @author: zengxuezhou
 * @date: 2016年11月28日 下午2:27:13
 */
@Entity
@Table(name = "TBL_STOCKOUT_PRODUCT")
public class StockOutProduct implements Serializable {

	private static final long serialVersionUID = -1502617352453871781L;

	/** id **/
	private String id;

	/** 出库单号 **/
	private String stockOutNo;

	/** 货物编号 **/
	private String prodNo;

	/** 商品编号 **/
	private String commoNo;

	/** 出库数量 **/
	private Long stockoutQuantity;
	
	/** 是否导入条形码或者选择采购单 0.未设置  1.已导入条形码 2.无条形码商品，只能手动选择采购单**/
	private Integer productCodeState;

	/** 描述 **/
	private String prodDesc;

	/** 采购单号 **/
	private String purNo;

	/** 采购单商品号 **/
	private String purProdNo;

	/** 仓库编号 **/
	private String whNo;

	/** 供应商编号 **/
	private String supNo;

	/** 出库，创建人员 **/
	private String creater;

	/** 出库，创建日期 **/
	private Date createTime;

	/** 修改人员 **/
	private String updater;

	/** 修改日期 **/
	private Date updateTime;

	/** 删除标识 **/
	private Integer deletedFlag;

	@Id
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false, length = 32)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "STOCKOUT_NO")
	public String getStockOutNo() {
		return stockOutNo;
	}

	public void setStockOutNo(String stockOutNo) {
		this.stockOutNo = stockOutNo;
	}

	@Column(name = "PROD_NO")
	public String getProdNo() {
		return prodNo;
	}

	public void setProdNo(String prodNo) {
		this.prodNo = prodNo;
	}

	@Column(name = "STOCKOUT_QUANTITY")
	public Long getStockoutQuantity() {
		return stockoutQuantity;
	}

	public void setStockoutQuantity(Long stockoutQuantity) {
		this.stockoutQuantity = stockoutQuantity;
	}

	@Column(name = "SUP_NO")
	public String getSupNo() {
		return supNo;
	}

	public void setSupNo(String supNo) {
		this.supNo = supNo;
	}

	@Column(name = "PUR_NO")
	public String getPurNo() {
		return purNo;
	}

	public void setPurNo(String purNo) {
		this.purNo = purNo;
	}

	@Column(name = "PROD_DESC")
	public String getProdDesc() {
		return prodDesc;
	}

	public void setProdDesc(String prodDesc) {
		this.prodDesc = prodDesc;
	}

	@Column(name = "WH_NO")
	public String getWhNo() {
		return whNo;
	}

	public void setWhNo(String whNo) {
		this.whNo = whNo;
	}

	@Column(name = "CREATE_TIME")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "CREATER")
	public String getCreater() {
		return creater;
	}

	public void setCreater(String creater) {
		this.creater = creater;
	}

	@Column(name = "UPDATER")
	public String getUpdater() {
		return updater;
	}

	public void setUpdater(String updater) {
		this.updater = updater;
	}

	@Column(name = "UPDATE_TIME")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "DELETED_FLAG")
	public Integer getDeletedFlag() {
		return deletedFlag;
	}

	public void setDeletedFlag(Integer deletedFlag) {
		this.deletedFlag = deletedFlag;
	}

	@Column(name = "COMMO_NO")
	public String getCommoNo() {
		return commoNo;
	}

	public void setCommoNo(String commoNo) {
		this.commoNo = commoNo;
	}

	@Column(name = "PUR_PROD_NO")
	public String getPurProdNo() {
		return purProdNo;
	}

	public void setPurProdNo(String purProdNo) {
		this.purProdNo = purProdNo;
	}

	@Column(name = "PRODUCT_CODE_STATE")
	public Integer getProductCodeState() {
		return productCodeState;
	}

	public void setProductCodeState(Integer productCodeState) {
		this.productCodeState = productCodeState;
	}
	
}